package com.example.wxchatcotents;

import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;

/***
 * 
 * @author chenchaoqun
 *
 */
public class AutoReply {

	public static void transSendText(CMessage paramCMessage, ClassLoader classLoader) {

		Class ah = XposedHelpers.findClass(VersionParam.MESSAGE_CLASS, classLoader);

		Class i = XposedHelpers.findClass(VersionParam.MODEL_MULTI_CLASS, classLoader);

		Object m = XposedHelpers.callStaticMethod(ah, VersionParam.MESSAGE_METHOD, new Object[0]);

		Object[] arrayOfObject1 = new Object[1];
		Object[] arrayOfObject2 = new Object[3];
		arrayOfObject2[0] = paramCMessage.talker;
		arrayOfObject2[1] = paramCMessage.message;
		arrayOfObject2[2] = Integer.valueOf(1);
		arrayOfObject1[0] = XposedHelpers.newInstance(i, arrayOfObject2);

		Boolean localBoolean = (Boolean) XposedHelpers.callMethod(m, VersionParam.SEND_MESSAGE_METHOD, arrayOfObject1);

		XposedBridge.log("自动回复,reply:" + localBoolean);
	}
}
